<template>
    <div>
        <div class="swiper-container" :class="options">
            <div class="swiper-wrapper">
              <slot></slot>
            </div>
            <!-- Add Pagination -->
          <div class="swiper-pagination"></div>
  </div>
    </div>
</template>
<script>
import Swiper from 'swiper/swiper-bundle'
import 'swiper/swiper-bundle.min.css'
export default {
  props: ['loop', 'options'],
  mounted () {
    new Swiper(`.${this.options}`, {
      loop: this.loop,
      pagination: {
        el: '.swiper-pagination',
        dynamicBullets: true
      },
      autoplay: {
        delay: 2500,
        disableOnInteraction: false
      }
    })
  }
}
</script>
